package com.songshuai.webapi.permission.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@ApiModel(value="分配人员下拉框快速定位到人员请求实体")
@Data
@ToString
public class QuickPositioningUserReqDto {

    @NotNull
    @Length(min=2, max=50)
    //@Min(2)
    // @ApiModelProperty(value="查询条件,用户可输入以下字符快速定位用户。部门，中英文名，多条件以空格间隔",required = true)
    @ApiModelProperty(value="查询条件,用户可输入任意字符搜索",required = true)
    private String param;

    @Min(1)
    @ApiModelProperty(value="最大结果条数",required = false)
    private Integer maxSize=50;

}